{extend name="../application/public/base.html" /}
{block name="head"}
	<link rel="stylesheet" href="ADMIN_CUSTOM/css/form.css">
	<link rel="stylesheet" href="ADMIN_CUSTOM/css/btn.css">
{/block}
{block name="body"}
    <body>
        <div class="x-nav">
			<span class="layui-breadcrumb">
				<a href="">首页</a>
				<a href="">演示</a>
				<a><cite>导航元素</cite></a>
			</span>
          	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                        	<!-- 订单信息 start -->
                            <div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
								<ul class="order_table">
									<li>订单信息</li>
								</ul>
							  	<div class="layui-tab-content tab-content-form">
								 	<span>订单时间：{$row.addtime}</span>
								 	<span>订单编号：{$row.order_sn}</span>
								 	<span>购买门店：{$row.shop_name}</span>
								 	<span>营业员：{$row.admin_name}</span>
							  	</div>
							</div>
							<!-- 订单信息 end -->
							<!-- 客户信息 start -->
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>客户信息</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
								 	<span>客户姓名：{$row.username}</span>
								 	<span>称呼：{$row.nkname}</span>
								 	<span>联系方式：{$row.phone}</span>
								 	<span>备用联系方式：{$row.spare_phone}</span>
								 	<span>客户编号：{$row.user_sn}</span>
							  	</div>
							</div>
							<!-- 客户信息 end -->
							<!-- 购买产品 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>购买产品</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<table class="layui-table layui-form">
									  	<thead>
											<tr>
										  		<th>序号</th>
										  		<th>产品编码</th>
										  		<th>产品名称</th>
										  		<th>IMEI</th>
										  		<th>S/N</th>
										  		<th>合同编号</th>
										  		<th>零售单价(元)</th>
										  		<th>批发价(元)</th>
										  		<th>数量</th>
										  		<th>单位</th>
										  		<th>售货价类型</th>
											</tr>
									  	</thead>
									  	<tbody>
									  		{volist name="goods" id="v" key="key"}
											<tr>
										  		<td>{$key}</td>
										  		<td>{$v.goods_sn}</td>
										  		<td>{$v.gname}</td>
										  		<td>{$v.imei}</td>
										  		<td>{$v.sn}</td>
										  		<td>{$v.contract_sn}</td>
										  		<td>{$v.selling_price}</td>
										  		<td>{$v.trade_price}</td>
										  		<td>{$v.number}</td>
										  		<td>{$v.unit}</td>
										  		<td>{$v.price_type_text}</td>
											</tr>
											{/volist}
									  </tbody>
									</table>
									<!-- <div class="tab-content-form">
							  			<span>售货价类型：????</span>
							  		</div> -->
							  	</div>
							</div>
							<!-- 购买产品 end -->

							<!-- 优惠信息 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>优惠信息</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<div class="tab-content-form">
							  			{if condition="count($activity) == 0"}
							  				<span>优惠活动：无</span>
							  			{else /}
								  			{volist name="activity" id="v"}
								  				<span>{$v.c_type}：{$v.act_name}</span>
								  			{/volist}
							  			{/if}
							  		</div>
							  	</div>
							</div>
							<!-- 优惠信息 end -->
							<!-- 订单备注 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>订单备注</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<div class="tab-content-form">
							  			<span>订单备注：{$row.remarks}</span>
							  		</div>
							  	</div>
							</div>
							<!-- 订单备注 end -->
							<!-- 订单总金额 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>订单总金额</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<div class="tab-content-form">
							  			<span>订单总金额(元)：{$row.order_money}</span>
							  			<span>未付款金额(元)：{$row.stay_money}</span>
							  		</div>
							  	</div>
							</div>
							<!-- 订单总金额 end -->
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </body>
{/block}
{block name="script"}
    <script type="text/javascript">

    </script>
{/block}